Repository navigation
docs(skills): notify selectors say when org:members reaches nobody and show the computed owner_of: form - #33577
Conversation
…d show the computed owner_of: form Paid in the same file: a strictObject restatement, three ADR asides and the side-effects pointer the skill description already carries. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5m6cFuoP5TBSv16TZ4
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: PR #33577, card #32961. Read: the card body and its three comments (unblock, claim, os-dev-report), the PR body, the two-file diff of the head against its parent Check-runs at the time of writing: every completed run is success or skipped, among them ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Holds:
Findings:
One should-fix and two nits, no must-fix. The should-fix earns a delta review of its fix. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T01:21Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
…dy case Under group the notification write is refused and the node fails, so the clause holds under single only; the start-node organization key is named. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5m6cFuoP5TBSv16TZ4
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: PR #33577, card #32961. AT-TIER DELTA review of the fix to finding 1 (should-fix) of record 6887230505, which holds head Check-runs on this head at the time of writing: every completed run is success or skipped, among them both ① Derived judgments
② Semver level
The changeset's new sentence, against the code: "under the ③ Boundary flags
④ Design judgment
Against the three postures (table in
The key spelling: The closing sentence "Each warns in the server log only; the node succeeds" still reads over the two reaches-nobody cases the line states; with the posture named, it no longer covers a case where the node fails. No regression elsewhere: the delta touches no other line of the file. Findings:
Carried, outside this diff: The should-fix is fixed; three nits, no must-fix, no should-fix. Nits alone end the round. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T01:51Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
…zation (objectstack-ai#33636) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XKmnz7y9Jpv9J9Z1a6URaKH)_ Fixes objectstack-ai#33579 Clause-②: no Metadata-protocol: none Signed: domain:skills#1 · os-project-manager · session_01FEkQ5kkneJapg7yoXuPYnx ## 维护者速读 - 改了什么:`flows.mdx` 中「`org:members` 找不到组织时谁也通知不到」一句改为按租户姿态分别说明:`single` 下谁也不通知、服务端日志告警、步骤成功;`group` 下通知写入被拒(`ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED`)、步骤失败;`isolated` 下这种定时流根本不会启用。补一句补救办法:声明流的执行组织。 - 为什么改:原句只在 `single` 下成立;`group` 下作者按文档预期「静默成功」,实际会看到步骤失败。 - 风险与回滚:纯文档一段文字,不碰任何包、不发布;回滚即还原该段。 - 先看:`content/docs/automation/flows.mdx` 第 343–356 行这一段。 - 两分钟验证:`git diff origin/main -- content/docs/automation/flows.mdx`,应只见这一段改动,三种姿态各一句。 - 需要你做的:无,席位落地。 ## What changes One paragraph of `content/docs/automation/flows.mdx` (§ notify recipients). The old sentence said that where a notification has no organization, `org:members` reaches nobody with a server-log warning. That holds under the `single` posture only. The paragraph now names the posture: - **`single`**: `org:members` reaches nobody, with a server-log warning, and the step succeeds. - **`group`**: the notification write itself is refused (`ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED`) and the step fails. - **`isolated`**: a `schedule` flow that declares no `organization` is never armed. - Remedy: declare the flow's acting organization (start-node `config.organization`), linked to the page's own `#the-acting-organization` section. The "any other `org:` value is no selector and reaches nobody, with a warning" half is kept and is now stated on its own, since it does not depend on the posture. ### Each claim, read on `main` @ 6e28797 | Claim | Code | |:--|:--| | The run with no organization is a `schedule` flow with no declared `organization` and no record | `packages/triggers/trigger-schedule/src/schedule-trigger.ts:552` (`describeScheduleRunOwnership`: a plain `schedule` flow sweeps no records, so under per-record ownership it carries none); `packages/spec/src/automation/schedule-organization.zod.ts:49-54` (posture table) | | The notify node passes the run's organization, else the record's, else none | `packages/services/service-automation/src/builtin/notify-node.ts:1213` (`context.tenantId`), `:1230-1240` (`organizationOfRecordAbout`) | | `emit()` writes the event row before it resolves the audience | `packages/services/service-messaging/src/messaging-service.ts:1398` (`writeEvent`), then `:1419` (`resolver.resolve` with the producer's `organizationId`) | | `single`: the event row is owned by the sole organization, the audience gets none, nobody is reached, warning logged, step succeeds | `packages/core/src/security/system-write-organization.ts:115-125` (`derived` at exactly one organization under `single`); `messaging-service.ts:1419-1425` (resolver gets `input.organizationId`, 0 recipients warns and returns); `packages/services/service-messaging/src/recipient-resolver.ts:232-239` (`org:members` with no organization warns, 0 recipients); `notify-node.ts:1307` (`success: true`) | | `group`: the write is refused and the step fails | `system-write-organization.ts:115` (any posture but `single` is `refuse` / `walled-posture`); `schedule-organization.zod.ts:103-105` (a record-less undeclared run under `group` takes the `walled-posture` refusal at the write); `notify-node.ts:1385-1394` (the catch returns `success: false`, `notify failed: ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED: …`) | | `isolated`: such a flow is never armed | `schedule-trigger.ts:804` (`policy.requiresActingOrganization && organization === null` releases and throws at bind); `schedule-organization.zod.ts:54` | ### Agreement with PR objectstack-ai#33577 (the skill twin) PR objectstack-ai#33577 (head 7cc0ff0) teaches in `skills/objectstack-automation/SKILL.md`: "else nobody (`single` posture: a `schedule` flow declaring no `organization`, no record). Any other `org:` value reaches nobody too. Each warns in the server log only; the node succeeds." This paragraph says the same for `single`, and adds `group` and `isolated`, which the skill line does not cover. No disagreement. If the server lane ever passes the resolver the organization stamped on the event row (the `owned` value at `messaging-service.ts:1399-1401`) instead of the producer's, both texts move together; the card names this. ## Tests Docs wording only: no package is touched, so no package test or typecheck is owed and no ablation applies. ## Acceptance notes None. ## Verification - `dispatch-gates --tier` on the real diff: no path-derived mandate (the surface hits none of the declared globs); the tier stays the seat's per-card call. - `check-governed-merges.mjs --branch HEAD`: NOT governed, 0 of 1 path(s) hit the register; 14 changed lines, under the human-merge threshold. - `skip-changeset`: `content/docs/**` ships in no published package's `files[]`. - Derived gates (`dispatch-gates --commands`), run on head c53ad15 after `turbo run build --filter=@objectstack/lint... --filter=@objectstack/client-react...` (exit 0): **43 derived, 43 run, all exit 0**. `dispatch-gates --ran`: 43 accounted for, 0 NOT-MEASURED, 0 UNRUN. <details><summary>43 gates, each with its exit code</summary> ```text node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-doc-route-spelling.mjs --advisory :: exit 0 node scripts/check-doc-route-spelling.mjs --self-test :: exit 0 node scripts/check-docs-section-name.mjs :: exit 0 node scripts/check-docs-section-name.mjs --self-test :: exit 0 node scripts/check-section-landing-index.mjs :: exit 0 node scripts/check-section-landing-index.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0 pnpm --filter @objectstack/spec run check:docs :: exit 0 pnpm --filter @objectstack/spec run check:empty-state :: exit 0 pnpm --filter @objectstack/spec run check:liveness :: exit 0 pnpm --filter @objectstack/spec run check:skill-examples :: exit 0 pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0 pnpm --filter @objectstack/spec run check:variant-docs :: exit 0 pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:corpus-claim-drift :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-anchors :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:doc-frontmatter :: exit 0 pnpm check:docs-audit-scope :: exit 0 pnpm check:docs-redirects :: exit 0 pnpm check:docs-single-h1 :: exit 0 pnpm check:docs-spec-enumerations :: exit 0 pnpm check:docs-transcript-drift :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:published-readme-links :: exit 0 pnpm check:react-page-adapter-contract :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:role-word :: exit 0 pnpm check:skill-identifier-liveness :: exit 0 pnpm check:vendor-version-stamps :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` </details> - Every family CI runs beyond the derived list: read off this PR's check-runs. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kkneJapg7yoXuPYnx)_ Co-authored-by: Claude <noreply@anthropic.com>
Requested by Leehom · project thread
Fixes #32961
domain:skills#1 · os-project-manager · session_01FEkQ5m6cFuoP5TBSv16TZ4
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-automation技能 §notify的两条受众选择器各补一句:org:members在single形态下既无运行组织、也无通知所指记录时谁也收不到(例:开始节点未声明organization、无记录的schedule流程),只在服务器日志告警,节点照样成功;owner_of:OBJECT:ID给出流程真正要写的形式,用表达式拼出 id(source: "'owner_of:crm_case:' + record.case_id")。owner_of:的可用写法。flows.mdx早已写明前一条。skills/objectstack-automation/SKILL.md第 132–133 行(两条选择器);再看第 108 行与 Assignment rules、Who may START 两处删去的 ADR 旁注。node scripts/check-skills-token-ratchet.mjs,预期 exit 0、objectstack-automation/SKILL.md is 6859 tokens (ceiling 6861; headroom 2)。skills/**):请批准或合并。What changes
skills/objectstack-automation/SKILL.md§notify, theorg:membersline (card Part 1, review S1). It now ends "else nobody (singleposture: ascheduleflow declaring noorganization, no record)", says any otherorg:value reaches nobody too, and says where the warning goes and what the node does: "Each warns in the server log only; the node succeeds." This also answers review nit N1 ("with a warning" did not say where).owner_of:OBJECT:IDline (card Part 2, review S2). It now shows the computed form once:source: "'owner_of:crm_case:' + record.case_id".notifylead: "NotifyConfigSchemaisstrictObject—" before "an undeclared key is a named parse error", which says the same thing in the words an author acts on.functionis a PURE compute step — it does NOT read/write the database") with "a later declarative node persists it", and the skill's own description ("Do not use for data lifecycle hooks at the object layer (see objectstack-data)"). Eval case 5 (thescriptcase) expects pure compute and a followingupdate_record, both still taught.notifylead and the Who may START callout) only re-flow lines the cuts shortened; they are not counted as payment..changeset/32961-notify-org-members-nobody-owner-of-form.md:'@objectstack/skills': patch, both declaration lines.Why
Part 1 re-measured on
origin/main03dc626, not taken from the card:schedulerun can carry no organization.packages/triggers/trigger-schedule/src/schedule-trigger.ts:803reads the binding's organization;:886spreadstenantIdonly when it is notnull(the ruling-Gsingleposture, comment:868-885).packages/services/service-automation/src/builtin/notify-node.ts:1213(context.tenantId),:1230-1239(organizationOfRecordAbout: the click-through record, else the trigger record). No record and notenantIdleaves it undefined.packages/services/service-messaging/src/messaging-service.ts:1419-1420passesinput.organizationId, not the organization the engine stamps on the event row (:1400-1402).packages/services/service-messaging/src/recipient-resolver.ts:233-239warns "this emit names no organization; 0 recipients" and returns[]; any otherorg:value warns at:173-175.notify-node.ts:1307returnssuccess: truewithdelivered: 0;deliveryFailureWarning(:99-103) adds a step warning only for a failed delivery, so the run history shows none.content/docs/automation/flows.mdx:346-349: "where there is none,org:membersreaches nobody … each with a warning in the server log".Part 2: the
owner_of:string is a recipient "written or evaluated" (the line above the list), so an envelope that evaluates to'owner_of:crm_case:ID'reaches that record's owner; the review record 6836991260 read the same path.Acceptance notes
7cc0ff03, review record 6887230505 should-fix): the case is named as thesingleposture. Undergroupthesys_notificationwrite inemit()is refused (ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED) before the audience is resolved and the node returnssuccess: false(notify-node.ts:1385-1394); underisolatedan undeclared schedule flow never binds. The remedy is named by spelling the start-node keyorganization(SCHEDULE_ORGANIZATION_KEY,packages/spec/src/automation/schedule-organization.zod.ts:159), +20 bytes inside the headroom. Nit not taken (no budget): the{ dialect: 'cel' }wrapper on theowner_of:example; item 1 and thenotifyfence already show the envelope.singleposture the engine stamps the sole organization on thesys_notificationrow (messaging-service.ts:1400-1402), yet the resolver is handed the producer's (:1419-1420, comment "The organization is the producer's, as role: has always read it"), soorg:membersreaches nobody where the deployment's one organization is known. The comment states this as intended, so it is reported to the seat as an observation, not as a defect.os:checkblock (left untouched).skills/objectstack-automation/evals/*.jsonhold no assertion on these two lines or on the cut phrases (git grepof each cut phrase overskills,packages,scripts,content,.claude: no test, script or eval pins one).Verification
Round 1 head
d9a512bb; round 2 head7cc0ff03reran the same 46 derived families pluscheck:skill-refsandcheck:skill-exampleswith the same result (45 exit 0,check:dual-build-cjs-loadsexit 3 NOT MEASURED; record32961-gates-ran-r2.txt). Baseorigin/main03dc626 (origin/mainlater moved to a9da547 with no commit touchingskills/objectstack-automationor the ratchet script).Line and token budget (skills/**)
skills/objectstack-automation/SKILL.md: 467 to 463 lines, 27447 to 27455 bytes; token ratchet 6857 to 6859 (ceiling 6861, headroom 2). The first wording with only thestrictObjectclause and the ADR asides cut measured 14 tokens over; the item 3 pointer cut paid the rest.skills/*/SKILL.md: 4597 to 4593 lines, about 59056 to 59053 tokens (ceil(bytes/4) per file).node scripts/pm/check-skill-line-ratchet.mjs: exit 0.node scripts/check-skills-token-ratchet.mjs: exit 0.Derived gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 46 families for the two paths. Each was run on headd9a512bbwith its exit code captured before any pipe, after building@objectstack/lint...,@objectstack/client-react...and@objectstack/formulaunder the verify lock (VERDICT command-exit 0, 356s):check-skills-token-ratchet(scan and--self-test),check-empty-changeset(scan and--self-test),check-changeset-no-major,check-adr-0087-registration,@objectstack/lint check:doc-formula-expressions,@objectstack/spec check:skill-docs,check:doc-authoring,check:nul-bytes,check:pm-governed-merges,check:published-files,check:role-word,check:skill-compatibility,check:skill-frame-sync,check:skill-identifier-liveness,check:skill-links,check:dts-closure,check:lean-entry-closure,check:sourcemap-no-sources-content.check:dual-build-cjs-loads(reads every package'sdist/; no package source is touched; CI builds and runs it).os:checkblocks:@objectstack/spec check:skill-refsexit 0 ("9 generated files in sync"),@objectstack/spec check:skill-examplesexit 0 ("345 prose examples type-check").--ranreconciliation: "46 derived famil(ies) accounted for — 45 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)".Tier and governed readings
dispatch-gates --tier: MANDATORY contract-review tier,skills/**under clause ① (the published catalog); no one-line exit for this surface. This thread ran at the claim's default model; the seat's at-tier contract review is the owed record.node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-j1oabg: GOVERNED, a human merge is the review record (Tier H). 1 of 2 paths hits the register (skills/**); the changeset is not on it. Size +21 / -15, under the 3000 threshold.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5m6cFuoP5TBSv16TZ4